package com.oop.principleOfOpeningAndClosing;

/**
 * @author Vhong
 * @version 1.0
 */
public class Employee {
    private String name;

    public Employee() {
    }

    public Employee(String name) {
        this.name = name;
    }

    public void goHome(Tools tools)
    {
        System.out.println(this.name + "准备回家");
        tools.run();
    }
}
